﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernateDown2Earth.Core.Entities;
using FluentNHibernate.Mapping;

namespace NHibernateDown2Earth.Core.Mapping
{
	public class OrderDetailMap: ClassMap<OrderDetail>
	{
		public OrderDetailMap()
		{
			Id(x => x.Id);
			References<Order>(x => x.Order);
			References<Product>(x => x.Product);

			Map(x => x.UnitCost);
			Map(x => x.Qty);
		}
	}
}
